<?php

class Form_Field_Submit extends Form_Field {

	protected $data;

	public function output($base){
		$tpl = Output::getInstance()->Template(array('form','field','submit'));
		$tpl->title = $this->title;
		$base[] = $this->name;
		$tpl->name = $base;
		return parent::output($base, $tpl);
	}

	public function run($name){
		if(isset($name)){ $this->data = true; }
	}

	public function data(){
		return $this->data;
	}

}
